﻿using System.Collections.Generic;
using BoldBrick.OneIntranet.HR.Properties;
using BoldBrick.SharePoint.CommonControls.DataObjects.Base;

namespace BoldBrick.OneIntranet.HR.DataObjects.ContentTypes.WorkflowsContentTypes
{
	public class WorkflowContentType : BaseContentType
	{
		/// <summary>
		/// Metadata class of "Workflow" content type
		/// </summary>
		protected override string GetContentTypeID()
		{
			return Settings.Default.ContentType_Workflow_ID;
		}

		protected override string GetNameResourceKey()
		{
			return "ContentType_Workflow_Name";
		}

		protected override string GetDescriptionResourceKey()
		{
			return "ContentType_Workflow_Description";
		}

		public override List<ListColumn> GetListColumns()
		{
			List<ListColumn> columns = new List<ListColumn>
			                           	{
											SharePoint.CommonControls.DataObjects.SiteColumns.NameColumn,
											SiteColumns.WorkflowPositionLookupColumn,
											SiteColumns.TasksListLookupColumn
			                           	};
			return columns;
		}
	}
}
